﻿using Books.Interfaces;
using Books.Model;

namespace Books.Data
{
    public class BooksRepository : IBooksDataService
    {
        public BookModel[] GetAllBooks()
        {
            using (var db = new BooksContext())
            {
                return db.GetBooks();
            }
        }
    }
}
